import request from '@/utils/request'

export default {
  page(page, limit) {
    return request({
      url: `/admin/getValuationByPage/${page}/${limit}`,
      method: 'post'
    })
  },
  find(Id) {
    return request({
      url: `/admin/getConfig/${Id}`,
      method: 'get'
    })
  },
  save(transactionControlConfiguration) {
    return request({
      url: `/admin/saveConfiguration`,
      method: 'post',
      data: transactionControlConfiguration
    })
  },
  saveConfigurationOver(transactionControlConfiguration) {
    return request({
      url: `/admin/saveConfigurationOver`,
      method: 'post',
      data: transactionControlConfiguration
    })
  }
}
